package main

import "fmt"

type StructTest struct {
	a string
	b int
}

func New(a string, b int) StructTest {
	st := StructTest{a, b}
	return st
}

func (st StructTest) functionTest() {
	fmt.Printf("这是结构体中的成员变量: %v %v", st.a, st.b)
}

func main() {
	st := New("哈哈", 123)
	st.functionTest()
}
